package org.mf.dao;

import java.util.List;

import org.mf.web.pagination.PagedResultSet;
import org.mf.web.pagination.Pager;

public interface GenericDao<T extends Object> {
	public T get(Long id);

	public List<T> getAll(Pager pager);

	public List<T> getAll();

	public PagedResultSet getPagedResults(Pager pager);

	public void save(T object);

	public void delete(T object);

	public Integer getAllCount();

	public Boolean isUnique(Long id, String fieldName, String fieldValue);
}
